<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>123</title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<h2>{{message}}</h2>
			<cpn><button>按钮</button></cpn>
			<cpn><i>按钮</i></cpn>
			<cpn></cpn>
		</div>
		<template id="cpn">
			<div>
				<div>哈哈</div>
				<slot><button>按钮</button></slot>
			</div>
		</template>
	</body>
	<script type="text/javascript">
		const app = new Vue({
			el:'#app',
			data:{
				message:'你好'
			},
			components:{
				cpn:{
					template:'#cpn',
				}
			}
		})
	</script>
</html>
